<%--
    Document   : addcourse
    Created on : 2010-12-20, 19:44:55
    Author     : yiyang
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="course.*,util.*,java.util.*"%>
<%String  cId=(String)session.getAttribute("cId");%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加成功</title>
<style type="text/css">
<!--
.style1 {
	color: #FF0000;
	font-family: "华文仿宋";
}
.style2 {font-size: 18px}
-->
</style>
</head>

<body>
        <%
        Course c=new Course();
        request.setCharacterEncoding("GB2312");
        String courseName=request.getParameter("name");
        String courseType=request.getParameter("type");
        //courseType=new String(courseType.getBytes("8859_1"),"gb2312");
        String courseIntro=request.getParameter("introduction");
        String courseOutline=request.getParameter("teach_outline");
        String coursePlan=request.getParameter("teach_plan");
        //String courseContent=request.getParameter("teach_content");
        String sql="update course set cname='"+courseName+"',category='"+courseType+"',introduction='"+courseIntro+"',teach_outline='"+courseOutline+"',teach_plan='"+coursePlan+"' where c_id="+cId;
        DBConnection d=new DBConnection();
        d.executeUpdate(sql);
       %>

<div align="center">
  <h1 class="style1"> 修改成功！</h1>
  <p class="style2">
   <a style="text-decoration: none" href="main.html"><font color="#FF0000">返回首页</font></a></p>
  <p class="style2">
   <a style="text-decoration: none" href="courseManage.jsp"><font color="#FF0000">返回课程管理页面</font></a></p>
</div>
</body>
</html>
